﻿using System;
using System.Collections.Generic;
using DataService.Structs;

namespace DataService.Interfaces;

//历史数据、报警数据的提交和数据均从服务器
public interface IHDAServer : IDisposable
{
    IEnumerable<HistoryData> ReadAtTime(params DateTime[] timeStamps);
    IEnumerable<HistoryData> ReadAtTime(short ID, params DateTime[] timeStamps);
    IEnumerable<HistoryData> ReadRaw(DateTime start, DateTime end);
    IEnumerable<HistoryData> ReadRaw(DateTime start, DateTime end, short ID);
    //IEnumerable<HistoryData> ReadProcessed(DateTime start, DateTime end, HDAAggregate aggregates, params short[] aggregateIDs);
}
